package com.lgc.javathread.demo.atomicIntegerDemo;

import java.util.concurrent.atomic.AtomicInteger;

public class Program {
    public static void main(String[] args) throws InterruptedException {
        MyThread myThread=new MyThread();

        Thread thread1=new Thread(myThread);
        Thread thread2=new Thread(myThread);

        thread1.start();
        thread2.start();

        Thread.sleep(500);
        System.out.println(myThread.getAtomicInteger().get());

        int c=0;
    }
}
